package com.nars.date;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;

public class TimeZoneDemo {

	public static void main(String[] args) throws ParseException {
		SimpleDateFormat formater = new SimpleDateFormat("yyyy-MM-dd HH");
		formater.setTimeZone(TimeZone.getTimeZone("AST"));
		Date winter = formater.parse("2010-01-02 00");
		TimeZone tz = TimeZone.getDefault();
		System.out.println("Time Zone " + tz.toString());
		System.out.println(TimeZone.getDefault().getDisplayName(new Locale("bg")));
		System.out.println("Time: " + winter);
	}
}
